package engine.loader;

import engine.render.ModelOBJ;
import java.util.HashMap;

public class LoaderModel
{
    
    private HashMap<String, ModelOBJ> modelMap;
    
    public LoaderModel()
    {
        this.modelMap = new HashMap<>();
    }
    
    public void loadModelOBJ(String fileName)
    {
        ModelOBJ model = new ModelOBJ(fileName);
        this.modelMap.put(fileName, model);
    }
    
    public ModelOBJ getModelOBJ(String fileName)
    {
        ModelOBJ model = this.modelMap.get(fileName);
        return model;
    }
    
    public void destroy()
    {
        this.modelMap.clear();
        this.modelMap = null;
    }
    
}
